Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

401
Views
Why do I get the error "None of these files exist:", even though the file does exist?

I am trying to import something from ./components/task using this line of code:

import Task from './components/task';

but I get the error

None of these files exist:
  * components\task(.native|.android.ts|.native.ts|.ts|.android.tsx|.native.tsx|.tsx|.android.js|.native.js|.js|.android.jsx|.native.jsx|.jsx|.android.json|.native.json|.json)
  * components\task\index(.native|.android.ts|.native.ts|.ts|.android.tsx|.native.tsx|.tsx|.android.js|.native.js|.js|.android.jsx|.native.jsx|.jsx|.android.json|.native.json|.json)
  1 | import React from 'react';
  2 | import { StyleSheet, Text, View } from 'react-native';
> 3 | import Task from './components/task';
    |                   ^
  4 |
  5 | export default function App() {
  6 |   return (

I have no idea why I am getting this error. The screenshot clearly shows the path does exist.

This is the error I get, even though the path does exist.

https://i.imgur.com/VhMWUHt.png

about 4 years ago · Juan Pablo Isaza
1 answers
Answer question

0

from The Photo and code, I see nothing wrong but try to put ".js" after ./components/task.js just try it.

Or check that the task code is right or has export default

about 4 years ago · Juan Pablo Isaza Report
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!